projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3ec18f3
)
(indent-line-to): Fix off-by-one bug when deciding
author
Karl Heuer
<kwzh@gnu.org>
Fri, 14 Mar 1997 16:35:03 +0000
(16:35 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Fri, 14 Mar 1997 16:35:03 +0000
(16:35 +0000)
whether to delete the existing spaces.
lisp/indent.el
patch
|
blob
|
history
diff --git
a/lisp/indent.el
b/lisp/indent.el
index c1e2fc2e1324394985946d670f406080321bd6be..5b69fab958a702dcbea973b5ed2473f0527420ea 100644
(file)
--- a/
lisp/indent.el
+++ b/
lisp/indent.el
@@
-84,7
+84,7
@@
only if necessary. It leaves point at end of indentation."
(back-to-indentation)
(let ((cur-col (current-column)))
(cond ((< cur-col column)
- (if (> (- column (* (/ cur-col tab-width) tab-width)) tab-width)
+ (if (>
=
(- column (* (/ cur-col tab-width) tab-width)) tab-width)
(delete-region (point)
(progn (skip-chars-backward " ") (point))))
(indent-to column))